package com.Moch.Abstract;

public class Circle extends Shape{
    private double r;
    private final static double PI = 3.14;

    public Circle(double r) {
        this.r = r;
    }

    public void draw() {
        System.out.println("圆: r = " + r);
    }

    public void calcArea() {
        area = PI * r * r;
    }

    public void Ccc() {
        System.out.println("圆");
    }

}
